package leecode

import (
	"fmt"
	"strings"
)

func findWordsContaining(words []string, x byte) (result []int) {
	target := fmt.Sprintf("%c", x)
	for index, value := range words {
		if strings.Contains(value, target) {
			result = append(result, index)
		}
	}
	return result
}
